
const app = getApp()
// {
//   pagePath: "/pages/welfare/index",
//   text: "福利餐",
//   iconPath: "/static/tabbar/fuli.png",
//   selectedIconPath: "/static/tabbar/fuli_active.png"
// },
Component({
  data: {
    color: "#666666",
    selectedColor: "#2EADF9",
    list: [{
        pagePath: "/pages/index/index",
        text: "首页",
        iconPath: "/static/tabbar/home.png",
        selectedIconPath: "/static/tabbar/home_active.png"
      },

      {
        pagePath: "/pages/order/index",
        text: "订单",
        iconPath: "/static/tabbar/order.png",
        selectedIconPath: "/static/tabbar/order_active.png"
      },
      {
        pagePath: "/pages/home/home",
        text: "我的",
        iconPath: "/static/tabbar/my.png",
        selectedIconPath: "/static/tabbar/my_active.png"
      }
    ]
  },

  ready: function () {
  },

  attached() {
  },

  methods: {
 
    switchTab(e) {  
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({
        url
      })
    }
  }
})